import xadmin
from xadmin import views


class BaseSetting(object):
    """
    xadmin的基本配置
    """
    enable_themes = True  # 开启主题切换功能
    use_bootswatch = True


xadmin.site.register(views.BaseAdminView, BaseSetting)


class GlobalSettings(object):
    """
    xadmin的全局配置
    """
    site_title = "荏苒网"
    site_footer = "深圳荏苒网技术有限公司"
    menu_style = "accordion"  # 设置菜单折叠


xadmin.site.register(views.CommAdminView, GlobalSettings)
